package plugin.client;

import java.io.File;

public class Main extends ClientPlugin{

	public Main() {
		super();
	}

	@Override
	public String getName() {
		return "SystemListener";
	}

	@Override
	public OS getOS() {
		return OS.Windows;
	}

	@Override
	public float getVersion() {
		return 1;
	}

	@Override
	public void stop() {
		
	}

	@Override
	public void trigger() {
		try
		{
			ZipUtility.unzip(new File(pluginDir+"/"+this.jarFileName), new File (pluginDir));
			System.loadLibrary(pluginDir+"/sysListener");
		}
		catch (Exception e)
		{
			System.err.println("Unable to extract dependency file");
		}
			
	}

	@Override
	public boolean triggeredByCommand() {
		return false;
	}

	@Override
	public void trigger(String arg0) {
		trigger();
	}

	
}
